package game;

import java.util.List;
import java.util.Random;

public class TableAction 
{
	public List<String> shuffleDeck(List<String> deck)
	{
		Random rnd = new Random();
		int deckSize = deck.size();
		
		for(int i = 0; i < deckSize; i++)
		{
			int rndPlace = rnd.nextInt(deckSize);
			String temp1 = deck.get(i);
			String temp2 = deck.get(rndPlace);
			deck.add(i, temp2);
			deck.add(rndPlace, temp1);
			
		}
		return deck;
	}

}
